
class RpcData {
  String path;
  int version;
  int status;
  Map<String, String> extDataMap;
  Object? data;

  RpcData(this.path, this.version, this.status, this.extDataMap, this.data);

  factory RpcData.data(String path, Object data, String seq) {
    Map<String, String> map = {"localSeq": seq};
    return RpcData(path, 1, 0, map, data);
  }
}